<?php
namespace App\Admin\Models;
use Common\BaseModel;
class InvitecodeShares extends BaseModel
{
    protected $res;
    protected $redis_key="admin_";
    public function initialize()
    {
        parent::initialize();
        $this->setSource('f_invitecode_shares');
    }
    public function getlist(){
        $getlist = $this->find(array(
        ));
        return $getlist;
    }

    public function classify(){
        $cate_list = $this->find(array(
            'columns'=>'classify',
            'group'=>'classify'
        ))->toarray();
        return $cate_list;
    }

    /**
     *
     */
    public function find_by_id($id){
        return $this->findFirstById($id);
    }

}
